<fieldset class="column-left2" id="agrupacion" style="min-width : 570px; min-height: 100px">
  <legend>Resultados de b&uacute;squeda</legend>
  <% if @cultural_heritage_cultural_heritages.size > 0 %>

  <br />
  <table frame="border"class="table-general paginated_table sorted_table" id="list_to_select" style="font-size: 9px;">
    <thead>
      <tr>
        <th>Código</th>
        <th>Nombre de Patrimonio</th>
        <th>Descripcion</th>
        <!--<th>Estado</th>-->
        <th>Subgrupo</th>
        <!--<th>Tipología</th>-->
        <th>Cultura</th>
        <th>Acciones</th>
      </tr>
    </thead>

    <tbody>
    <% @cultural_heritage_cultural_heritages.each do |cultural_heritage_cultural_heritage| %>
      <tr>
        <td class="national_registration_code"><%= cultural_heritage_cultural_heritage.nationalRegistrationCode %></td>
        <td class="name"><%= cultural_heritage_cultural_heritage.name %></td>
        <td><%= cultural_heritage_cultural_heritage.description %></td>
        <%#*<td><%= cultural_heritage_cultural_heritage.obj_state.name </td>%>
        <td><%= cultural_heritage_cultural_heritage.obj_subGroup.name %> </td>
        <%#*<td>%>
          <%# if !cultural_heritage_cultural_heritage.tipology.blank? %>
            <%#= cultural_heritage_cultural_heritage.obj_tipology.name %>
          <%#end%>
        <%#*</td>%>
        <td>
          <% if !cultural_heritage_cultural_heritage.culture.blank?  %>
            <%= cultural_heritage_cultural_heritage.obj_culture.name %>
          <%end%>
        </td>
        <td>
          <a href="#" cultural-heritage-id='<%= cultural_heritage_cultural_heritage.id %>' class="js_link_cultural_heritage" title="Asociar">
            <img border="0" title="Asociar" src="/images/navi/0047-badge-circle-direction-right-16-ns.png" alt="Asociar" />
          </a>
        </td>      
    <% end %>
        
        </tr>
    </tbody>
  </table>
  <% else %>
    <p>Ning&uacute;n Patrimonio Cultural encontrado</p>
  <% end %>
</fieldset>